package com.hyt.it.ogt.kq.service.gov.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考场信息表
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mb_office_room")
@ApiModel(value="MbOfficeRoom对象", description="考场信息表")
public class OfficeRoom extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构id")
    private String officeId;

    @ApiModelProperty(value = "部门id")
    private String deptId;

    @ApiModelProperty(value = "考场类型，见字典 普通考场 听力考场 电学实验考场 计算机考场")
    private String roomType;

    @ApiModelProperty(value = "考场类型，见字典 普通考场 听力考场 电学实验考场 计算机考场")
    @TableField(exist = false)
    private String roomTypeStr;

    @ApiModelProperty(value = "所属考点id")
    private String placeId;

    @ApiModelProperty(value = "考场编号")
    private Integer code;

    @ApiModelProperty(value = "考场名称")
    private String name;

    @ApiModelProperty(value = "考场地址")
    private String address;

    @ApiModelProperty(value = "机位数")
    private Integer seatNum;

    @ApiModelProperty(value = "备用机位数")
    private Integer reserveSeatNum;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "考场状态，1：可用，2：占用")
    private Integer status;

    @ApiModelProperty(value = "作答方式，1：电子作答，2：纸笔作答")
    private Integer answerType;

    @TableField("is_reserve")
    @ApiModelProperty(value = "是否备用考场，true：是，false：否")
    private Boolean reserve;

    @ApiModelProperty(value = "所属区域 : eg 广东省深圳市南山区")
    @TableField(exist = false)
    private String regionAddr;

}
